function toggleTag(e,x) {
		JQuery.post('${facesContext.externalContext.requestContextPath}/tags/toggle',
			{'caseRecord':x},
			function(data) {
				if(data['tagged'])
					jQuery(e).attr('src','${facesContext.externalContext.requestContextPath}/images/tag_selected.gif')
				else
					jQuery(e).attr('src','${facesContext.externalContext.requestContextPath}/images/tag_white.gif')
			});				
	}
	function myJsFunction(data) {
	    if (data.status === 'success') {
	    	if($(data.source).hasClass( "ui-icon-circle-arrow-w" )){
	    		$( ".showhide.ui-icon-circle-arrow-s" ).trigger( "click" );	
				$(data.source).removeClass("ui-icon-circle-arrow-w" ).addClass("ui-icon-circle-arrow-s");
				$(data.source).find("span").removeClass("ui-icon-circle-arrow-w" ).addClass("ui-icon-circle-arrow-s");
				$(data.source).closest("tr").addClass("active");
			}else{
				$(data.source).removeClass("ui-icon-circle-arrow-s" ).addClass("ui-icon-circle-arrow-w");
				$(data.source).find("span").removeClass("ui-icon-circle-arrow-s" ).addClass("ui-icon-circle-arrow-w");			
				$(data.source).closest("tr").removeClass("active");
			}
	    	
	    }
	}
	/* jQuery(document).ready(function($) {
		$( "a.showhide" ).click(function() {			
			if($(this).hasClass( "ui-icon-circle-arrow-w" )){				
				$(this).removeClass("ui-icon-circle-arrow-w" ).addClass("ui-icon-circle-arrow-s");
				$(this).find("span").removeClass("ui-icon-circle-arrow-w" ).addClass("ui-icon-circle-arrow-s");
				$(this).parent("tr").addClass("active");
			}else{
				$(this).removeClass("ui-icon-circle-arrow-s" ).addClass("ui-icon-circle-arrow-w");
				$(this).find("span").removeClass("ui-icon-circle-arrow-s" ).addClass("ui-icon-circle-arrow-w");			
				$(this).parent("tr").removeClass("active");
		}
			
		});
		}); */